﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Model
{
    public class BWebSite
    {
        /// <summary>
        /// 站点ID站点名称
        /// </summary>
        //[JsonIgnore]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }
        /// <summary>
        /// 站点主头像
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// 站点名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 站点格言
        /// </summary>
        public string Slogan { get; set; }
        /// <summary>
        /// 站点主页
        /// </summary>
        public string Domain { get; set; }
        /// <summary>
        /// 站点通知
        /// </summary>
        public string Notice { get; set; }
        /// <summary>
        /// 站点描述
        /// </summary>
        public string Desc { get; set; }
        /// <summary>
        /// 站点全局样式：公祭日置灰等
        /// </summary>
        public string GlobalStyle { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        private DateTime updatedAt = DateTime.Now;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdatedAt { get { return updatedAt; } set { updatedAt = value; } }

    }
}
